package com.monster.threadpool;

import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * description:
 *
 * @author Yuanml on 2021/9/19 15:04
 */
public class MyThreadPool {
    private static final ThreadPoolExecutor THREAD_POOL_EXECUTOR = new ThreadPoolExecutor(8, 8, 1, TimeUnit.SECONDS, new LinkedBlockingDeque<>(10));
    public static ThreadPoolExecutor getThreadPool() {
        return THREAD_POOL_EXECUTOR;
    }
}
